<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>37-赋值运算符</title>
    <script>
        var num = 10;
        // num = num + 1;  num++;
        // num = num + 2; // num += 2;
        // num += 2;
        num += 5;
        console.log(num); // 15
        var age = 2;
        age *= 3;
        console.log(age); // 6
    </script>
</head>

<body>

</body>

</html>